package com.dwxt.cdms.dao;

import com.dwxt.cdms.applets.dto.IndexReqDTO;
import com.dwxt.cdms.entity.LbWatchSleep;
import com.dwxt.cdms.view.wristwatch.NewSleepDataView;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface LbWatchSleepMapper extends Mapper<LbWatchSleep> {


    List<LbWatchSleep> selectGroup(String name, Integer stationId);

    LbWatchSleep selectLastByCustomerId(Integer customerId);

    List<LbWatchSleep> selectPageByCustomerId(Integer customerId);

    NewSleepDataView getDaySleepByTimeAndCustomerId(Integer customerId, String startTime);

    List<NewSleepDataView> selectGraphLbSleepWeekOrMonth(IndexReqDTO indexReqDTO);

    List<NewSleepDataView> selectGraphLbSleepYear(IndexReqDTO indexReqDTO);
}